package pres.lnk.learn.designpattern.d_builder;

import pres.lnk.learn.designpattern.d_builder.items.ChickenBurger;
import pres.lnk.learn.designpattern.d_builder.items.Coke;
import pres.lnk.learn.designpattern.d_builder.items.Pepsi;
import pres.lnk.learn.designpattern.d_builder.items.VegBurger;

/**
 * <p>套餐（复杂产品建造器）</p>
 *
 * @Author lnk
 * @Date 2018/2/1
 */
public class MealBuilder {

    /**
     * 蔬菜汉堡套餐
     * @return
     */
    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    /**
     * 鸡肉汉堡套餐
     * @return
     */
    public Meal prepareChickenMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
